﻿namespace RedDockNet_BackEnd.Config
{
    public class UserDBConfig : IMongoDBConfig
    {
        /// <summary>
        /// 主机名
        /// </summary>
        public string Host { get; set; }
        /// <summary>
        /// 端口号
        /// </summary>
        public string Port { get; set; }
        /// <summary>
        /// 连接字符串
        /// </summary>
        public string ConnectionString => $"mongodb://{this.Host}:{this.Port}";
        /// <summary>
        /// 集合
        /// </summary>
        public string Collection { get; set; }
        /// <summary>
        /// 数据库
        /// </summary>
        public string Database { get; set; }
    }
}
